home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Best of Shareware
/
Best of PC Windows Shareware 1.0 - Wayzata Technology (7111) (1993).iso
/
mac
/
DOS
/
UTILITY
/
DISKUT45
/
DISK45.EXE
/
DISKUTL.DOC
< prev
next >
Wrap
Text File
|
1992-09-18
|
23KB
|
523 lines
*******************************************************
| RO-SOFT SYSTEMS (C) 1992 |
|=====================================================|
| DISK UTILITIES Ver 4.5 BY Robert Ossowski |
*******************************************************
* MAKE YOUR COMPUTING EASY *
_______
____|__ | (R)
--| | |-------------------
| ____|__ | Association of
| | |_| Shareware
|__| o | Professionals
-----| | |---------------------
|___|___| MEMBER
Table of Contents : Page
Disk scan routine SCANDISK.EXE ................. 1
Permanent sort & compact directories SORTDIR.EXE 1
Disk optimiser routine DEFRAG.EXE .............. 2
File recovery routine UNDELETE.EXE ............. 4
Double directory list/print/all dirs DDIR.EXE .. 5
Repeat command in all directories REPTCOMM.EXE . 6
Disk directory tree report TREE.EXE ............ 7
File find list/print WHERE.EXE ................. 8
These routines have been tested using DOS Versions
3.1, 3.3, 4.01, and 5.0, on 5.25 and 3.5 inch
floppies, and hard disk partitions up to 81 Meg.
Page 1
*********************************
* DISK UTILITIES BY RO-SOFT *
*********************************
* SORT DISK DIRECTORIES *
* SORTDIR.EXE * This utility inputs a drive letter and directory name
for sort first by filename, & then by file extent. It loads and sorts
the directory, clears out all deleted entries, then stores the sorted
directory on the disk. The global character * may be used in order to
have all the directories on a drive sorted.
Program sign-on prompt is as follows :
Enter DIR Name ?
Entry Format : d:\dirname (ie. c:\mydir)
d:* For all dirs on drive
d:\ For just root dir
Directories will be sorted and compacted
* SCAN A DISK FOR READ ERRORS *
* DISKSCAN.EXE * This routine will check the readability of an entire
disk partition. It first checks the file allocation table for any
disk clusters marked as bad and reports any found. Then it starts at
sector zero, reading the disk in 64K byte blocks. If a read error is
detected, it will report the error type returned by DOS and begin
checking that area one sector at a time. At any sector returning an
error, the file allocation table is checked for the recorded status
and a message is displayed (i.e. Flagged as bad, Un-allocated, or In
-use by file). If the sector is in a reserved area, a message indicat-
ing so will be displayed(i.e. Boot sector, Root directory, File alloc
table). At completion of this sector by sector search it will cont-
inue search in 64K blocks to the end of disk partition.
No attempt is made by this routine to correct any errors found.
Its only function is to give the error report. Command options may
be entered at run time or the program will prompt you for an input.
Options format is (drive:/P(n)), where drive is the assigned disk
letter, /P = Output errors to printer, (n) =1 or 2 for Lpt1 or Lpt2.
Page 2
*********************************
* DISK UTILITIES BY RO-SOFT *
*********************************
* DISK OPTIMIZER DEFRAG.EXE *
* DEFRAG.EXE * This routine will correct fragmented data files on your
disks,allowing most applications to run much faster on your system. The
present version works on all files in directories no more than five dir
levels deep from the root directory. Any Files or Dirs beyond the fifth
level will hinder defrag and disk pack operations. Entries over 1,024
in a single sub-directory will be ignored. Maximum hard disk partition
is limited to approximately 130M Bytes. Command options may include a
drive letter and a /P or /P2 (i.e. d:/p). This should be run about
once a week to keep your files in good shape. The /P option invokes a
more intensive data storage compression cycle. This option shifts data
to fill all unused disk clusters leaving all free space in one area at
the end of disk. This option takes quite a while to complete. Use of
these options are only necessary if normal defrag cannot clear all file
fragments. The /P2 Option adds another check to the pack cycle for use
on nearly full disks with a lot of fragmentation. You should not norm-
ally need to use this option. The map option displays the status of
all disk clusters and highlights any breaks in cluster strings.
The sign-on screen prompting for drive & option entry is as follows :
To defragment files on a disk
Enter new drive ? ................................
Entry Format : drive:/p (ie. c: or c:/p for drive c)
Add the /p for badly fragmented drives
! BACK UP YOUR FILES BEFORE RUNNING DEFRAG !
Press "Esc" to exit !
Page 3
*********************************
* DISK UTILITIES BY RO-SOFT *
*********************************
* DISK OPTIMISER DEFRAG.EXE *
After entering drive & options, data for all directories on the
disk is being read while displaying the following screen :
Checking Dir : C:\TASM\WORK
* Getting Disk Data *
Press "Esc" to abort optimization
The displayed directory name changes as each dir is scanned for
fragmentated files. When this scan is completed, the results are
displayed on screen as follows :
542 File Fragments Detected
Press "M" for allocation map, "C" to continue, or "Esc" to exit
At this prompt, you may select "M" to display the disk cluster
mapping of the results of the scan, "C" to continue into the
defragging process, or "Esc" to abort the program.
On entering "C", the directories on the drive are sequentially
evaluated, and fragmented files are moved to a new location. At
the completion of each directory cycle, if you entered the /P
option, a data compact cycle is initiated. This frees up blocks
of sequential clusters to relocate more fragmented files. As this
process continues, all file segments being moved will be displayed
on-screen with the present cluster location first,and then the new
cluster to which that file segment is being moved. Pressing the
"Esc" key will interrupt the cycle at any time. Upon exiting, a
new check is made for file fragments remaining and is displayed.
The program may be run again at any time to continue the process.
Page 4
*********************************
* DISK UTILITIES BY RO-SOFT *
*********************************
* DISK OPTIMISER DEFRAG.EXE *
* DISK ALLOCATION MAP LISTING *
When you select the disk mapping option all disk cluster allocation will be
listed on screen, starting with the first page. The clusters where a file
break occurs will be highlighted so you can see the shape your disk data is
in. You can page back and forth through this listing. Each four digit entry
is a hexadecimal number defining the location of the next cluster of data for
this data block. Clusters in numeric sequence indicate an unbroken block of
data. A "FFFF" entry indicates the last cluster of data in a particular file.
The first entry on the first page is a disk type ID entry. This allocation
table is called a "FAT TABLE". FAT stands for (File Allocation Table).
Disk C: File allocation clusters 0000 h - 00FE h
All entries in hexidecimal 2,048 Bytes per cluster
FFF8 FFFF 0003 0004 0005 0006 0007 0008 0009 000A 000B 000C 000D 000E 000F 0010
0011 0012 FFFF 0014 0015 0016 0017 0018 0019 001A 001B 001C 001D 001E 001F 0020
0021 0022 0023 0024 0025 FFFF FFFF 0028 0029 002A 002B 002C 002D 002E 002F 0030
0031 0032 0033 0034 0035 0036 0037 FFFF 0039 003A 003B 003C 003D 003E 003F 0040
0041 0042 0043 0044 0045 0046 0047 0048 0049 004A FFFF 004C 004D 004E 004F 0050
0051 0052 0053 0054 0055 0056 0057 0058 0059 005A 005B 005C 005D FFFF FFFF FFFF
FFFF FFFF FFFF 0064 FFFF 0066 0067 0068 0069 006A 006B 006C 006D 006E FFFF 0070
0071 0072 0073 FFFF 0075 0076 0077 0078 0079 007A 007B 007C 007D 007E FFFF 0080
0081 0082 0083 FFFF 0085 0086 0087 0088 0089 FFFF 008B 008C 008D 008E 008F 0090
0091 0092 0093 0094 0095 0096 0097 0098 0099 009A 009B 009C 009D 009E 009F 00A0
00A1 00A2 00A3 00A4 00A5 00A6 00A7 00A8 00A9 FFFF 00AB 00AC 00AD 00AE 00AF 00B0
00B1 00B2 00B3 00B4 00B5 FFFF 00B7 00B8 00B9 00BA 00BB 00BC 00BD 00BE 00BF 00C0
00C1 00C2 00C3 00C4 00C5 00C6 00C7 FFFF 00C9 00CA 00CB 00CC FFFF 00CE 00CF 00D0
00D1 00D2 00D3 00D4 00D5 FFFF 00D7 00D8 00D9 00DA 00DB FFFF 00DD 00DE 00DF 00E0
00E1 00E2 FFFF 00E4 00E5 FFFF 00E7 00E8 00E9 00EA 00EB 00EC 00ED 00EE 00EF 00F0
00F1 00F2 00F3 FFFF 00F5 FFFF 00F7 FFFF 00F9 FFFF FFFF 00FC 00FD 00FE 00FF 0100
■ FFFF = File end cluster ■ FFF7 = Cluster marked bad
■ ???? = Next cluster in string File breaks are highlighted
■ 0000 = Unallocated cluster First entry is disk type ID
Press Page-Up, Page-Down, or Esc to exit
Page 5
*********************************
* DISK UTILITIES BY RO-SOFT *
*********************************
* RECOVER DELETED FILES *
* UNDELETE.EXE * This utility attempts the restoration of previously
deleted files. It searches all directories of the current drive for a
matching an entered filename. If a file is found,it marks it undeleted
and assigns succeeding unallocated FAT entries, starting with assigned
file beginning cluster, to this file. This may, or may not, make the
file usable. If no files have been moved on the disk since this file
was deleted it should then be a usable file.
If a name is not entered, all deleted files and directories on current
or specified drive will be displayed to mark for recovery as you see
fit. The Probability of recovery is checked and listed as Good, Fair,
Poor, or None. Sign-on prompt is as follows :
Enter Filename ?
Entry format to recover deleted files
For a specified file : d:\filename.ext (i.e. c:\myfile.txt)
To select from list : "Enter" (current drive) or "c:" (drive c:)
All directories on disk will be searched
Press -Esc- To Exit !
If the file is restored its full pathname will be listed.
UNDELETE DISPLAY FORMAT
18 Deleted Files Located Chance of Recovery
C:\?TEST\ <DIR> GOOD
?LLOC.ASM 321 11-03-91 2:55p A GOOD
?TSIZE.ASM 3,467 8-16-91 9:16p A GOOD
?AKUP.ASM 7,308 8-15-91 11:11a A FAIR
?UTSTAT.ASM 936 12-08-91 3:46p A GOOD
?HECKID.ASM 291 12-12-91 10:20a A GOOD
?HECKID1.ASM 193 11-03-91 3:02p A GOOD
?HNGCON.ASM 956 5-12-91 2:05p A GOOD
C:\TASM\?EST\ <DIR> GOOD
?LLOC.ASM 321 11-03-91 2:55p A GOOD
?TSIZE.ASM 3,467 8-16-91 9:16p A GOOD
?AKUP.ASM 7,308 8-15-91 11:11a A GOOD
?UTSTAT.ASM 936 12-08-91 3:46p A GOOD
?ALC.ASM 23,581 12-19-91 11:32a A POOR
?HECKID.ASM 291 12-12-91 10:20a A GOOD
?HECKID1.ASM 193 11-03-91 3:02p A GOOD
?HNGCON.ASM 956 5-12-91 2:05p A GOOD
Enter new filename character to mark for recovery
Press "F10" to recover marked files or "Esc" to abort
Page 6
*********************************
* DISK UTILITIES BY RO-SOFT *
*********************************
* REPEATE A COMMAND IN ALL DIRS *
* REPTCOMM.EXE * This routine allows entry of a command to be executed
in all directories on a specified drive. It is useful for clean up of
misc. un-wanted files, or as suggested on sign-on, getting a printed
list of all files on a drive using a dir command. If not an internal
DOS command, the directory location of the command file must be in the
DOS search path as set in your AUTOEXEC.BAT file.
The sign on prompt is as follows:
To execute a command in all directories on a drive
Enter COMMAND ? ..........................
Entry format : [/command] for current drive
[drive:/command] for new drive
Command will be executed in all directories on specified drive
[ie. c:/ddir /p] To print listing of all files on drive C
Remember that directory of ddir must be in the DOS search path
Page 7
*********************************
* DISK UTILITIES BY RO-SOFT *
*********************************
* DOUBLE COLOR DIR LIST/PRINT *
* DDIR.EXE * This routine prints and or lists a disks directories in
double column format, pausing for user input at each page end unless
the print option,/p was entered. If run from the DOS prompt, you may
enter the drive and path as a command option (i.e. ddir d:\newdir).
All file names, listed or printed, are first sorted by name, then by
extent. If you have a color monitor, the different extents will be
displayed in different colors.
To run, enter the command (DDIR option). See option format below.
If no command option is entered, the program will prompt you for an
option entry. The option may contain the disk drive designation, the
desired directory pathname, a /p to print, or a /# for all dirs on
the drive. Just pressing the "Enter" key at prompt, will list only
current directory. Filenames may be entered in the PATH using DOS
wildcard characters * and ?.
Valid entries as follows :
c:\Yourdir\*.com :List all .com files in c:\Yourdir
c:\Yourdir /p :List & print all files in c:\Yourdir
d: :List files in current directory of d:
d: /p /# :List & print all files in all dirs on d:
c:BR??????.* /# :List all files on c: starting with BR
DDIR.EXE : This is a sample listing provided by this routine
Directory of C:\HELP
***********************************************************************
. <DIR> 5-26-91 9:35a |DOSINT HLP 306000 7-07-91 5:54p
.. <DIR> 5-26-91 9:35a |DOSSYS HLP 166000 6-26-91 9:54a
DOSHELP ASM 43047 9-29-91 4:33p |DISKS HLP 84000 6-26-91 9:51a
DOSHELPM ASM 40916 9-29-91 4:38p |HELP HLP 6000 7-14-91 6:01p
EDIT CLP 20000 7-15-91 6:03p |MOUSE HLP 42000 6-21-91 10:16p
WP CLP 348000 7-15-91 10:43a |OPECODE HLP 42000 5-27-91 9:58a
DOSHELPM EXE 11530 9-27-91 12:43p |SHELL HLP 2000 9-17-91 2:12p
DOSHELP EXE 5852 9-29-91 3:15p |VIDEO HLP 142000 7-09-91 11:24a
BIOSINT HLP 158000 7-09-91 12:27p |ASCII HLP 34000 6-26-91 7:10p
COMMAND HLP 334000 6-20-91 8:33p |WPMONO HLP 174000 6-12-91 6:49p
DIR HLP 102000 6-12-91 5:04p |
***********************************************************************
21 File(s) 2910208 bytes free
|****** Press any key to continue ******|
Page 8
*********************************
* DISK UTILITIES BY RO-SOFT *
*********************************
* DISK DIRECTORY TREE *
* TREE.EXE * This routine lists or prints a disk directory drawing
a tree like presentation giving the directory name, the number of
files in each directory, and the number of bytes of data stored. The
print option may be aborted at any time by pressing the Esc key.
If run from the DOS prompt, you may enter the drive and option
along with the command (i.e. tree d:/p), or the program will prompt
you for the input as follows.
Enter new drive ?
Press "Enter" to list tree of current drive
Entry may contain drive: and /p for print option
(ie. c:/p) Will both list and print tree of drive C:
(ie. c:/p2) Will list and print on LPT2
DIRECTORY TREE LISTING
E:|-\ 0 Bytes in 1 Files
E:|-\TEST 321,689 Bytes in 30 Files
E:|-\PAINT 1,000,476 Bytes in 129 Files
E:|-\ASM 35,628 Bytes in 5 Files
E:|-\DOSHELP 321,722 Bytes in 28 Files
E:|-\HELP 2,034,490 Bytes in 16 Files
E:|-\TASM 0 Bytes in 0 Files
>-\WORK 536,655 Bytes in 46 Files
>-\TEST 4,506 Bytes in 1 Files
Drive totals = 4,255,166 Bytes in 256 Files
END TREE
Press any key to continue
Page 9
*********************************
* DISK UTILITIES BY RO-SOFT *
*********************************
* FILE LOCATOR *
* WHERE.EXE * This routine inputs a filespec, searches all directories
on drives, and reports all locations of found files. If more than one
screen page is found, it awaits user input to go to the next page. The
file pathnames may be up to ninety-five characters long,and ten levels
deep from the root directory.
You may enter the filespec at the command level, or the program will
prompt for an entry. The filespec should contain a filename, and file
extent as required. Any KNOWN letters of the name, and wild card char-
acters may be used. The "?" may be substituted for any unknown char-
acter. The "*" indicates ALL for either name or extent. The command
options may be a drive letter followed by a colon, and a single digit
number. The number designates how many drives to search, starting at
the input drive letter. Entering /p at the end of the command option
will cause the search results to be listed and printed.
Entries may be as follows :
* *.dat A:4/p * List,& print all files with .DAT ext. drives A: thru D:
* dat.* D:1 * Find & list all files with name DAT on drive D:
* dat?????.* * Find & list all files beginning with DAT
* da???.* * List all files with a five letter name starting w/DA
* Default searches up to 10 drives starting with drive C:
Enter search command or "Esc" to exit
* WHERE.EXE * This is a sample listing supplied by this routine
Searching for file : *.DAT
C:\CIM\FAVORITE.DAT 375 8-29-91 7:43p
C:\SHARE32\SHELLHLP.DAT 39,791 6-27-91 8:23a
C:\SHARE34\SHELLHLP.DAT 43,598 8-29-91 1:15p
C:\TASM\SHELL\SHELLHLP.DAT 43,598 8-20-91 2:18p
C:\TASM\WORK\ASCII.DAT 26,621 6-25-90 5:57p
C:\TASM\WORK\BIOSINT.DAT 88,426 7-09-90 12:26p
C:\TASM\WORK\COMMAND.DAT 227,607 8-20-91 7:45p
C:\TASM\WORK\DISKS.DAT 50,715 8-02-90 7:51p
D:\TASM\WORK\DISKS.DAT 50,715 8-02-90 7:51p
D:\TASM\WORK\DOSINT.DAT 161,454 1-22-91 8:34a
D:\TASM\WORK\DOSSYS.DAT 116,680 10-13-90 2:26p